package com.ruoyi.project.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.GyLoomingMapper;
import com.ruoyi.project.domain.GyLooming;
import com.ruoyi.project.service.IGyLoomingService;

/**
 * 工艺设计穿综筘表Service业务层处理
 * 
 * @author xiangjun
 * @date 2021-12-14
 */
@Service
public class GyLoomingServiceImpl implements IGyLoomingService 
{
    @Autowired
    private GyLoomingMapper gyLoomingMapper;

    /**
     * 查询工艺设计穿综筘表
     * 
     * @param id 工艺设计穿综筘表主键
     * @return 工艺设计穿综筘表
     */
    @Override
    public GyLooming selectGyLoomingById(Long id)
    {
        return gyLoomingMapper.selectGyLoomingById(id);
    }

    /**
     * 查询工艺设计穿综筘表列表
     * 
     * @param gyLooming 工艺设计穿综筘表
     * @return 工艺设计穿综筘表
     */
    @Override
    public List<GyLooming> selectGyLoomingList(GyLooming gyLooming)
    {
        return gyLoomingMapper.selectGyLoomingList(gyLooming);
    }

    /**
     * 新增工艺设计穿综筘表
     * 
     * @param gyLooming 工艺设计穿综筘表
     * @return 结果
     */
    @Override
    public int insertGyLooming(GyLooming gyLooming)
    {
        gyLooming.setCreateTime(DateUtils.getNowDate());
        return gyLoomingMapper.insertGyLooming(gyLooming);
    }

    /**
     * 修改工艺设计穿综筘表
     * 
     * @param gyLooming 工艺设计穿综筘表
     * @return 结果
     */
    @Override
    public int updateGyLooming(GyLooming gyLooming)
    {
        gyLooming.setUpdateTime(DateUtils.getNowDate());
        return gyLoomingMapper.updateGyLooming(gyLooming);
    }

    /**
     * 批量删除工艺设计穿综筘表
     * 
     * @param ids 需要删除的工艺设计穿综筘表主键
     * @return 结果
     */
    @Override
    public int deleteGyLoomingByIds(Long[] ids)
    {
        return gyLoomingMapper.deleteGyLoomingByIds(ids);
    }

    /**
     * 删除工艺设计穿综筘表信息
     * 
     * @param id 工艺设计穿综筘表主键
     * @return 结果
     */
    @Override
    public int deleteGyLoomingById(Long id)
    {
        return gyLoomingMapper.deleteGyLoomingById(id);
    }
}
